Experiences with Extension Programming and Scripting in Python

نویسنده

  • Charles Anderson
چکیده

Our experiences interfacing Python with optimization software are presented. The same work was done using extension programming and scripting. Due to the nature of the C libraries we were using, we found problems related to memory corruption and C namespace collisions when we used the libraries as Python extensions. For our application and the software we are interfacing to, we found that using the libraries as standalone programs connected via Python scripting was a better way to use the optimization codes via Python.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A declarative extension of parsing expression grammars for recognizing most programming languages

Parsing Expression Grammars are a popular foundation for describing syntax. Unfortunately, several syntax of programming languages are still hard to recognize with pure PEGs. Notorious cases appears: typedef-defined names in C/C++, indentation-based code layout in Python, and HERE document in many scripting languages. To recognize such PEG-hard syntax, we have addressed a declarative extension ...

متن کامل

An Embedded Error Recovery and Debugging Mechanism for Scripting Language Extensions

In recent years, scripting languages such as Perl, Python, and Tcl have become popular development tools for the creation of sophisticated application software. One of the most useful features of these languages is their ability to easily interact with compiled languages such as C and C++. Although this mixed language approach has many benefits, one of the greatest drawbacks is the complexity o...

متن کامل

Teaching an Object-Oriented CS1 in Python

Python’s use in education has grown rapidly due to its elegantly simple syntax. Though often viewed as a “scripting language,” Python is a fully object-oriented language with an extremely consistent object model and a rich set of builtin classes. We are finishing our second year using Python as the language for an object-oriented CS1 course. Based on these experiences, we discuss aspects of Pyt...

متن کامل

Scripting Modelica Models Using Python

Modelica has evolved as a powerful language for encoding models of complex systems. In control engineering, it is of interest to be able to analyze dynamic models using scripting languages such as MATLAB and Python. This paper illustrates some analysis and design methods relevant in control engineering through scripting a Modelica model of an anaerobic digester model using Python, and discusses...

متن کامل

Using Scripting Languages to Teach Programming

Nowadays, scripting programming languages like Python, Perl and Ruby are widely used in system programming, scientific computing, etc. Although solving a particular problem in these languages requires less time, less programming effort, and less concepts to be taught to achieve the desired goal, still they are not used as teaching tools. Therefore, the use of scripting languages as a teaching v...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997